package com.zhou.system.management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.zhou.common.lib.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author zxf
 * @since 2023-05-18
 */
@Getter
@Setter
@TableName("sys_dept")
@ApiModel(value = "SysDept对象", description = "部门表")
public class SysDept extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "部门id", position = 1)
    @JsonProperty(index = 1)
    @TableId(value = "dept_id", type = IdType.AUTO)
    private Long deptId;

    @ApiModelProperty(value = "父部门id", position = 2)
    @JsonProperty(index = 2)
    private Long parentId;

    @ApiModelProperty(value = "祖级列表", position = 3)
    @JsonProperty(index = 3)
    private String ancestors;

    @ApiModelProperty(value = "部门名称", position = 4)
    @JsonProperty(index = 4)
    private String deptName;

    @ApiModelProperty(value = "显示顺序", position = 5)
    @JsonProperty(index = 5)
    private Integer orderNum;

    @ApiModelProperty(value = "类型;0部门，1分公司，2地区", position = 6)
    @JsonProperty(index = 6)
    private Integer type;

    @ApiModelProperty(value = "部门状态;（0正常,1停用）", position = 7)
    @JsonProperty(index = 7)
    private Integer status;

    @ApiModelProperty(value = "扩展字段;存json，是否能发布政策", position = 8)
    @JsonProperty(index = 8)
    private String extendFields;

    @ApiModelProperty(value = "地区行政编办;如：40010，410181", position = 9)
    @JsonProperty(index = 9)
    private String areaCode;

    @ApiModelProperty(value = "备注", position = 10)
    @JsonProperty(index = 10)
    private String remark;
}
